package com.learn.library;

import com.learn.dao.PersonMapper;
import com.learn.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/*
@Service
public class PersonMybatisService {
    @Autowired
    private PersonMapper personMapper;

    public List<Person> getlist() {
        List<Person> list = new ArrayList<Person>();
        list = personMapper.selectList();
        return list;
    }

    public Integer insertPerson( Person person ) {
        personMapper.insertPerson( person );
        return person.getId();
    }

}
*/
